<?php foreach ($this->content as $content): ?>
	<div class="blogwrap">
    	<div class="blogtitle">
    		<h3>
    			<a href="<?php echo $this->href; ?>/<?php echo $content['alias']; ?>">
    				<?php echo $content['title']; ?>
    			</a>
    		</h3>
    	</div> 	        	
        <div class="blogbody">      	            	
            <div class="blogtext"> 	                              
                <?php echo $content['text']; ?>	                	
                
            </div>                        
            <p>
                Tags: 
                <span>
                    <?php foreach ($content['tags'] as $tag): ?>
                        <a href="/posts-by-tag/tag_id/<?php echo $tag['id']; ?>"><?php echo $tag['tag_name']; ?></a>
                    <?php endforeach; ?>
                </span>
            </p>
            <div class="blogbutton">                                                
                <div style="text-align: left;">
                    Опубликовано: <span><?php echo $content['date_create']; ?></span>
                </div>                                                          
                <div style="padding-bottom: 5px;">
                    <a href="<?php echo $this->href; ?>/<?php echo $content['alias']; ?>" title="Read More" class="smallsmoothrectange orangebutton">Read More</a>
                </div>
            </div>         
            <span class="box-arrow"></span>       
        </div>
    </div>
<?php endforeach; ?>